#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
#include<stdlib.h>

int comper(const void* p1, const void* p2)
{
	return *(int*)p1 - *(int*)p2;
}

int main()
{
	int n = 0,P=0,Q=0;
	scanf("%d %d %d", &n, &P, &Q);
	int arr[100000];
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	qsort(arr, n, sizeof(int), comper);
	while (P || Q)
	{
		if ((arr[n - 1] > 4)&&P)
		{
			arr[n - 1] = sqrt(arr[n - 1]);
			P--;
		}
		else
		{
			arr[n - 1] /= 2;
			Q--;
		}
		qsort(arr, n, sizeof(int), comper);
	}
	int sum = 0;
	for (int i = 0; i < n; i++)
	{
		sum += arr[i];
	}
	printf("%d", sum);
	return 0;
}